package com.order.itemcategoryproject.service.lmpl;

import com.order.itemcategoryproject.mapper.vClassTreeMapper;
import com.order.itemcategoryproject.pojo.vClassTree;
import com.order.itemcategoryproject.service.vClassTreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class vClassTreeServicelmpl implements vClassTreeService {

    @Autowired
    private vClassTreeMapper vClassTreeMapper;


    /**
     * 获取所有类别名称
     * @return
     */
    @Override
    public List<vClassTree> selectAllCategory() {
        return vClassTreeMapper.selectAllCategory();
    }

    /**
     * 获取小类名称
     * @return
     */
    @Override
    public List<vClassTree> selectSmallClassInfo() {
        return vClassTreeMapper.selectSmallClassInfo();
    }
}
